export function queryRegion(value,AreaList){
    // return new Promise((resolve,reject) => {
        let areaList = [
            {value:'1101',name:'北京'},
            {value:'1201',name:'天津'},
            {value:'1301',name:'石家庄'},
            {value:'1302',name:'唐山'},
            {value:'1303',name:'秦皇岛'},
            {value:'1304',name:'邯郸'},
            {value:'1305',name:'邢台'},
            {value:'1306',name:'保定'},
            {value:'1307',name:'张家口'},
            {value:'1308',name:'承德'},
            {value:'1309',name:'沧州'},
            {value:'1310',name:'廊坊'},
            {value:'1311',name:'衡水'},
            {value:'1401',name:'太原'},
            {value:'1402',name:'大同'},
            {value:'1403',name:'阳泉'},
            {value:'1404',name:'长治'},
            {value:'1405',name:'晋城'},
            {value:'1406',name:'朔州'},
            {value:'1407',name:'晋中'},
            {value:'1408',name:'运城'},
            {value:'1409',name:'忻州'},
            {value:'1410',name:'临汾'},
            {value:'1411',name:'吕梁'},
            {value:'1501',name:'呼和浩特'},
            {value:'1502',name:'包头'},
            {value:'1503',name:'乌海'},
            {value:'1504',name:'赤峰'},
            {value:'1505',name:'通辽'},
            {value:'1506',name:'鄂尔多斯'},
            {value:'1507',name:'呼伦贝尔'},
            {value:'1508',name:'巴彦淖尔'},
            {value:'1509',name:'乌兰察布'},
            {value:'1522',name:'兴安盟'},
            {value:'1523',name:'哲里木盟'},
            {value:'1525',name:'锡林郭勒盟'},
            {value:'1527',name:'伊克昭盟'},
            {value:'1529',name:'阿拉善盟'},
            {value:'2101',name:'沈阳'},
            {value:'2102',name:'大连'},
            {value:'2103',name:'鞍山'},
            {value:'2104',name:'抚顺'},
            {value:'2105',name:'本溪'},
            {value:'2106',name:'丹东'},
            {value:'2107',name:'锦州'},
            {value:'2108',name:'营口'},
            {value:'2109',name:'阜新'},
            {value:'2110',name:'辽阳'},
            {value:'2111',name:'盘锦'},
            {value:'2112',name:'铁岭'},
            {value:'2113',name:'朝阳'},
            {value:'2114',name:'葫芦岛'},
            {value:'2201',name:'长春'},
            {value:'2202',name:'吉林'},
            {value:'2203',name:'四平'},
            {value:'2204',name:'辽源'},
            {value:'2205',name:'通化'},
            {value:'2206',name:'白山'},
            {value:'2207',name:'松原'},
            {value:'2208',name:'白城'},
            {value:'2224',name:'延边朝鲜族'},
            {value:'2301',name:'哈尔滨'},
            {value:'2302',name:'齐齐哈尔'},
            {value:'2303',name:'鸡西'},
            {value:'2304',name:'鹤岗'},
            {value:'2305',name:'双鸭山'},
            {value:'2306',name:'大庆'},
            {value:'2307',name:'伊春'},
            {value:'2308',name:'佳木斯'},
            {value:'2309',name:'七台河'},
            {value:'2310',name:'牡丹江'},
            {value:'2311',name:'黑河'},
            {value:'2323',name:'绥化'},
            {value:'2327',name:'大兴安岭'},
            {value:'3101',name:'上海'},
            {value:'3201',name:'南京'},
            {value:'3202',name:'无锡'},
            {value:'3203',name:'徐州'},
            {value:'3204',name:'常州'},
            {value:'3205',name:'苏州'},
            {value:'3206',name:'南通'},
            {value:'3207',name:'连云港'},
            {value:'3208',name:'淮安'},
            {value:'3209',name:'盐城'},
            {value:'3210',name:'扬州'},
            {value:'3211',name:'镇江'},
            {value:'3212',name:'泰州'},
            {value:'3213',name:'宿迁'},
            {value:'3301',name:'杭州'},
            {value:'3302',name:'宁波'},
            {value:'3303',name:'温州'},
            {value:'3304',name:'嘉兴'},
            {value:'3305',name:'湖州'},
            {value:'3306',name:'绍兴'},
            {value:'3307',name:'金华'},
            {value:'3308',name:'衢州'},
            {value:'3309',name:'舟山'},
            {value:'3310',name:'台州'},
            {value:'3311',name:'丽水'},
            {value:'3401',name:'合肥'},
            {value:'3402',name:'芜湖'},
            {value:'3403',name:'蚌埠'},
            {value:'3404',name:'淮南'},
            {value:'3405',name:'马鞍山'},
            {value:'3406',name:'淮北'},
            {value:'3407',name:'铜陵'},
            {value:'3408',name:'安庆'},
            {value:'3410',name:'黄山'},
            {value:'3411',name:'滁州'},
            {value:'3412',name:'阜阳'},
            {value:'3413',name:'宿州'},
            {value:'3415',name:'六安'},
            {value:'3416',name:'亳州'},
            {value:'3417',name:'池州'},
            {value:'3418',name:'宣城'},
            {value:'3501',name:'福州'},
            {value:'3502',name:'厦门'},
            {value:'3503',name:'莆田'},
            {value:'3504',name:'三明'},
            {value:'3505',name:'泉州'},
            {value:'3506',name:'漳州'},
            {value:'3507',name:'南平'},
            {value:'3508',name:'龙岩'},
            {value:'3509',name:'宁德'},
            {value:'3601',name:'南昌'},
            {value:'3602',name:'景德镇'},
            {value:'3603',name:'萍乡'},
            {value:'3604',name:'九江'},
            {value:'3605',name:'新余'},
            {value:'3606',name:'鹰潭'},
            {value:'3607',name:'赣州'},
            {value:'3608',name:'吉安'},
            {value:'3609',name:'宜春'},
            {value:'3610',name:'抚州'},
            {value:'3611',name:'上饶'},
            {value:'3701',name:'济南'},
            {value:'3702',name:'青岛'},
            {value:'3703',name:'淄博'},
            {value:'3704',name:'枣庄'},
            {value:'3705',name:'东营'},
            {value:'3706',name:'烟台'},
            {value:'3707',name:'潍坊'},
            {value:'3708',name:'济宁'},
            {value:'3709',name:'泰安'},
            {value:'3710',name:'威海'},
            {value:'3711',name:'日照'},
            {value:'3712',name:'莱芜'},
            {value:'3713',name:'临沂'},
            {value:'3714',name:'德州'},
            {value:'3715',name:'聊城'},
            {value:'3716',name:'滨州'},
            {value:'3717',name:'菏泽'},
            {value:'4101',name:'郑州'},
            {value:'4102',name:'开封'},
            {value:'4103',name:'洛阳'},
            {value:'4104',name:'平顶山'},
            {value:'4105',name:'安阳'},
            {value:'4106',name:'鹤壁'},
            {value:'4107',name:'新乡'},
            {value:'4108',name:'焦作'},
            {value:'4109',name:'濮阳'},
            {value:'4110',name:'许昌'},
            {value:'4111',name:'漯河'},
            {value:'4112',name:'三门峡'},
            {value:'4113',name:'南阳'},
            {value:'4114',name:'商丘'},
            {value:'4115',name:'信阳'},
            {value:'4116',name:'周口'},
            {value:'4117',name:'驻马店'},
            {value:'4190',name:'济源'},
            {value:'4201',name:'武汉'},
            {value:'4202',name:'黄石'},
            {value:'4203',name:'十堰'},
            {value:'4205',name:'宜昌'},
            {value:'4206',name:'襄樊'},
            {value:'4207',name:'鄂州'},
            {value:'4208',name:'荆门'},
            {value:'4209',name:'孝感'},
            {value:'4210',name:'荆州'},
            {value:'4211',name:'黄冈'},
            {value:'4212',name:'咸宁'},
            {value:'4213',name:'随州'},
            {value:'4228',name:'恩施土家族苗族'},
            {value:'429004',name:'仙桃'},
            {value:'429005',name:'潜江'},
            {value:'429006',name:'天门'},
            {value:'429021',name:'神农架林区'},
            {value:'4301',name:'长沙'},
            {value:'4302',name:'株洲'},
            {value:'4303',name:'湘潭'},
            {value:'4304',name:'衡阳'},
            {value:'4305',name:'邵阳'},
            {value:'4306',name:'岳阳'},
            {value:'4307',name:'常德'},
            {value:'4308',name:'张家界'},
            {value:'4309',name:'益阳'},
            {value:'4310',name:'郴州'},
            {value:'4311',name:'永州'},
            {value:'4312',name:'怀化'},
            {value:'4313',name:'娄底'},
            {value:'4331',name:'湘西土家族苗族'},
            {value:'4401',name:'广州'},
            {value:'4402',name:'韶关'},
            {value:'4403',name:'深圳'},
            {value:'4404',name:'珠海'},
            {value:'4405',name:'汕头'},
            {value:'4406',name:'佛山'},
            {value:'4407',name:'江门'},
            {value:'4408',name:'湛江'},
            {value:'4409',name:'茂名'},
            {value:'4412',name:'肇庆'},
            {value:'4413',name:'惠州'},
            {value:'4414',name:'梅州'},
            {value:'4415',name:'汕尾'},
            {value:'4416',name:'河源'},
            {value:'4417',name:'阳江'},
            {value:'4418',name:'清远'},
            {value:'4419',name:'东莞'},
            {value:'4420',name:'中山'},
            {value:'4451',name:'潮州'},
            {value:'4452',name:'揭阳'},
            {value:'4453',name:'云浮'},
            {value:'4501',name:'南宁'},
            {value:'4502',name:'柳州'},
            {value:'4503',name:'桂林'},
            {value:'4504',name:'梧州'},
            {value:'4505',name:'北海'},
            {value:'4506',name:'防城港'},
            {value:'4507',name:'钦州'},
            {value:'4508',name:'贵港'},
            {value:'4509',name:'玉林'},
            {value:'4510',name:'百色'},
            {value:'4511',name:'贺州'},
            {value:'4512',name:'河池'},
            {value:'4513',name:'来宾'},
            {value:'4514',name:'崇左'},
            {value:'4601',name:'海口'},
            {value:'4602',name:'三亚'},
            {value:'4603',name:'三沙'},
            {value:'469001',name:'五指山'},
            {value:'469002',name:'琼海'},
            {value:'469003',name:'儋州'},
            {value:'469005',name:'文昌'},
            {value:'469006',name:'万宁'},
            {value:'469007',name:'东方'},
            {value:'469021',name:'定安县'},
            {value:'469022',name:'屯昌县'},
            {value:'469023',name:'澄迈县'},
            {value:'469024',name:'临高县'},
            {value:'469025',name:'白沙黎族自治县'},
            {value:'469026',name:'昌江黎族自治县'},
            {value:'469027',name:'乐东黎族自治县'},
            {value:'469028',name:'陵水黎族自治县'},
            {value:'469029',name:'保亭黎族苗族自治县'},
            {value:'469030',name:'琼中黎族苗族自治县'},
            {value:'50',name:'重庆'},
            {value:'5101',name:'成都'},
            {value:'5103',name:'自贡'},
            {value:'5104',name:'攀枝花'},
            {value:'5105',name:'泸州'},
            {value:'5106',name:'德阳'},
            {value:'5107',name:'绵阳'},
            {value:'5108',name:'广元'},
            {value:'5109',name:'遂宁'},
            {value:'5110',name:'内江'},
            {value:'5111',name:'乐山'},
            {value:'5113',name:'南充'},
            {value:'5114',name:'眉山'},
            {value:'5115',name:'宜宾'},
            {value:'5116',name:'广安'},
            {value:'5117',name:'达州'},
            {value:'5118',name:'雅安'},
            {value:'5119',name:'巴中'},
            {value:'5120',name:'资阳'},
            {value:'5132',name:'阿坝藏族羌族'},
            {value:'5133',name:'甘孜藏族'},
            {value:'5134',name:'凉山彝族'},
            {value:'5201',name:'贵阳'},
            {value:'5202',name:'六盘水'},
            {value:'5203',name:'遵义'},
            {value:'5204',name:'安顺'},
            {value:'5205',name:'毕节'},
            {value:'5206',name:'铜仁'},
            {value:'5223',name:'黔西南布依族苗族'},
            {value:'5226',name:'黔东南苗族侗族'},
            {value:'5227',name:'黔南布依族苗族'},
            {value:'5301',name:'昆明'},
            {value:'5303',name:'曲靖'},
            {value:'5304',name:'玉溪'},
            {value:'5305',name:'保山'},
            {value:'5306',name:'昭通'},
            {value:'5307',name:'丽江'},
            {value:'5308',name:'普洱'},
            {value:'5309',name:'临沧'},
            {value:'5323',name:'楚雄彝族'},
            {value:'5325',name:'红河哈尼族彝族'},
            {value:'5326',name:'文山壮族苗族'},
            {value:'5328',name:'西双版纳傣族'},
            {value:'5329',name:'大理白族'},
            {value:'5331',name:'德宏傣族景颇族'},
            {value:'5333',name:'怒江傈僳族'},
            {value:'5334',name:'迪庆藏族'},
            {value:'5401',name:'拉萨'},
            {value:'5421',name:'昌都'},
            {value:'5422',name:'山南'},
            {value:'5423',name:'日喀则'},
            {value:'5424',name:'那曲'},
            {value:'5425',name:'阿里'},
            {value:'5426',name:'林芝'},
            {value:'6101',name:'西安'},
            {value:'6102',name:'铜川'},
            {value:'6103',name:'宝鸡'},
            {value:'6104',name:'咸阳'},
            {value:'6105',name:'渭南'},
            {value:'6106',name:'延安'},
            {value:'6107',name:'汉中'},
            {value:'6108',name:'榆林'},
            {value:'6109',name:'安康'},
            {value:'6110',name:'商洛'},
            {value:'6201',name:'兰州'},
            {value:'6202',name:'嘉峪关'},
            {value:'6203',name:'金昌'},
            {value:'6204',name:'白银'},
            {value:'6205',name:'天水'},
            {value:'6206',name:'武威'},
            {value:'6207',name:'张掖'},
            {value:'6208',name:'平凉'},
            {value:'6209',name:'酒泉'},
            {value:'6210',name:'庆阳'},
            {value:'6211',name:'定西'},
            {value:'6212',name:'陇南'},
            {value:'6229',name:'临夏回族'},
            {value:'6230',name:'甘南藏族'},
            {value:'6301',name:'西宁'},
            {value:'6321',name:'海东'},
            {value:'6322',name:'海北藏族'},
            {value:'6323',name:'黄南藏族'},
            {value:'6325',name:'海南藏族'},
            {value:'6326',name:'果洛藏族'},
            {value:'6327',name:'玉树藏族'},
            {value:'6328',name:'海西蒙古族藏族'},
            {value:'6401',name:'银川'},
            {value:'6402',name:'石嘴山'},
            {value:'6403',name:'吴忠'},
            {value:'6404',name:'固原'},
            {value:'6405',name:'中卫'},
            {value:'6501',name:'乌鲁木齐'},
            {value:'6502',name:'克拉玛依'},
            {value:'6521',name:'吐鲁番'},
            {value:'6522',name:'哈密'},
            {value:'6523',name:'昌吉回族'},
            {value:'6527',name:'博尔塔拉蒙古'},
            {value:'6528',name:'巴音郭楞蒙古'},
            {value:'6529',name:'区阿克苏'},
            {value:'6530',name:'克孜勒苏柯尔克孜'},
            {value:'6531',name:'喀什'},
            {value:'6532',name:'和田'},
            {value:'6540',name:'伊犁哈萨克'},
            {value:'6542',name:'塔城'},
            {value:'6543',name:'阿勒泰'},
            {value:'659001',name:'石河子'},
            {value:'659002',name:'阿拉尔'},
            {value:'659003',name:'图木舒克'},
            {value:'659004',name:'五家渠'},
            {value:'7101',name:'台湾'},
            {value:'8101',name:'香港'},
            {value:'8201',name:'澳门'},
        ]
        let nameList;
        let Num;
        areaList.forEach((item) => {
            if(value.name == item.value){
                let items = {}
                items.name = item.name
                items.value = value.value
                AreaList.push(items)
            }
        })
        console.log(AreaList)
        return AreaList
}